﻿using System.Collections.Generic;
using System.IO;

namespace Mnk.Merger.Code.Settings
{
    public class MergeConfig
    {
        public string ProjectName { get; set; }
        public string CacheFolder { get; set; }
        public string MessageDescription { get; set; }
        public string SourcesFolder { get; set; }
        public string MergeUrl { get; set; }
        public IList<string> Validation { get; set; }
        public string BulkProjectsNames { get; set; }
        public string RevisionsToMerge { get; set; }
        public string AuthorsToMerge { get; set; }
        public string MessagesToMerge { get; set; }
        public string OperationsBeforeMerge { get; set; }
        public string MergeFrom { get; set; }
        public bool UseDryMerge { get; set; }

        public MergeConfig()
        {
            CacheFolder = Path.Combine(Path.GetTempPath(), "Merger");
            MessageDescription = "#00000: Merge.";
            Validation = new List<string>{"msbuild"};
            OperationsBeforeMerge = "CRU";
            UseDryMerge = false;
        }
    }
}
